package com.czz.manage.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName: Ad
 * @Author Czz
 * @Date 2020/2/5
 * @Time 17:18
 **/
@Data
@TableName(value = "system_ad")
@Accessors(chain = true)
public class Ad {
    @TableId(value = "ad_id", type = IdType.ID_WORKER_STR)
    private String id;

    @TableField(value = "ad_name")
    private String name;

    @TableField(value = "ad_pic")
    private String pic;

    @TableField(value = "course_id")
    private String courseId;

    @TableField(value = "course_name")
    private String courseName;

    @TableField(value = "ad_sort")
    private String sort;

    @TableField(value = "ad_status")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
